<div class="subscribe">
	<div class="subscribe_content_top"></div>
	<div class="subscribe_content">
		<h3>Đăng ký nhận thông báo thành công!</h3>
		<h3>Chuyễn vào <a href="<?php echo $this->baseUrl()?>">Trang chủ</a> sau <strong><span id="timer"></span></strong> giây.</h3>
	</div>
	<div class="subscribe_content_bottom"></div>
</div>
<script type="text/javascript">
	var count = 5;
	function redirect(){
		var timer = document.getElementById("timer");
		timer.innerHTML = count;
		count--;
		if(count == 0){
			window.location = "<?php echo $this->baseUrl() ?>";
		}else{
			setTimeout(redirect,1000);
		}
	}
	window.onload = function(){
		var timer = document.getElementById("timer");
		timer.innerHTML = count;
		setTimeout(redirect,1000);
	}
</script>
